
/// <summary>
/// 抽象处理者
/// </summary>
public abstract class Handler{
    /// <summary>
    /// 下一个处理者
    /// </summary>
    protected Handler? nextHandler;

    public void SetNextHandler(Handler handler){
        nextHandler = handler;
    }

    public abstract void HandleRequest(Request request);
}